import { timeStamp } from 'console';
import { from } from 'rxjs';
import { Entity, Column, Generated, PrimaryGeneratedColumn, CreateDateColumn, UpdateDateColumn, Timestamp } from 'typeorm';
import { Base } from '../../base.entity';

@Entity()
export class SetKey extends Base {

    //类别
    @Column({ length: 30, comment: '产品类别' })
    type: string;

    //产品类型主键
    @Column({ length: 100, comment: '产品类型主键' })
    key_set_type: string;

    //名称
    @Column({ length: 100, comment: '名称' })
    key_set_name: string;

    //KEY
    @Column({ length: 100, comment: 'KEY' })
    key_set_key: string;

    //默认值
    @Column({ type: 'float', comment: '默认值', nullable: true })
    key_set_default: number;

    //单位
    @Column({ length: 30, comment: '单位', nullable: true })
    key_set_unit: string;

    //保留小数点
    @Column({ default: 2, comment: '保留小数点' })
    tofixed: number;

    //状态
    @Column({ default: 0, comment: '状态' })
    status: number;

    //排序
    @Column({ comment: '排序', default: 100 })
    sort_no: number;

    //描述
    @Column({ length: 300, comment: '描述', nullable: true })
    key_set_describe: string;

    //创建人user_id
    @Column({ comment: '创建人user_id',  default: 0, nullable: true})
    user_id: number;

    //所属商户
    @Column({ comment: '所属商户ID', default: 0, nullable: true })
    business_id: number;

}

